package com.goldsprite.microhorigame.screens.examples.spinegfsmexamples.spinegfsm;


import com.goldsprite.microhorigame.screens.examples.spinegfsmexamples.gfsm.FsmInput;

public class SpineFsmInput extends FsmInput {
	private boolean jumping = false;
	private boolean attacking = false;
	private float moveDirection = 0;
	private boolean moveProtect;

	public boolean isJumping() {
		return jumping;
	}

	public void setJumping(boolean jumping) {
		this.jumping = jumping;
	}

	public boolean isAttacking() {
		return attacking;
	}

	public void setAttacking(boolean attacking) {
		this.attacking = attacking;
	}

	public float getMoveDirection() {
		return moveDirection;
	}

	public void setMoveDirection(float direction) {
		this.moveDirection = direction;
	}

	public boolean isMoveProtect() {
		return moveProtect;
	}

	public void setMoveProtect(boolean moveProtect) {
		this.moveProtect = moveProtect;
	}

	public boolean isMoving() {
		return moveDirection != 0;
	}

	public boolean isSafeMoving() {
		return isMoving() && !isMoveProtect();
	}
}
